﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Zone.aspx.cs" Inherits="WMS6.Web.Configuration.Zone" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Zone</title>
   <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>
    <script src="../Js/util.js" id="js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>    
    <script src="../Js/Verification.js" type="text/javascript"></script>
    
    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initEditNewPage();
        }
        
        //弹出窗口选择货位
        function selectLot(obj)
        {
            var tempStr = "../Configuration/LocationQuery.aspx?action=" +escape(obj);
            var rtnValue = popModalWindow(tempStr,'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById(obj).focus();
                document.getElementById(obj).value = rtnValue;
            }
        }
        
        function newZone()
        {
            var from = document.getElementById("hdnFrom").value;
            window.location.href = "Zone.aspx?from="+ escape(from);
            return false;
        }
        
        function confirmMsg(code)
        {
            if(code == "C001")
            {
                if(confirm('<%=GetGlobalMsgResource("C001") %>'))
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }

        }
        
    </script>
</head>
<body>
    <form id="F2131" runat="server">
    <div>
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    
    <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom"><asp:Label ID="lblOwner" runat="server" CssClass="label_header" 
                            Text="储区" meta:resourcekey="lblOwner"></asp:Label></td>
                    <td><asp:Button ID="btnGoBack" runat="server" CssClass="button" Enabled="False" 
                            Text="<%$ Resources:ButtonResource,btnGoBack %>"  CausesValidation="False"
                            onclick="btnGoBack_Click" meta:resourcekey="btnGoBackResource1"    /></td>
                    <td><asp:Button ID="btnNew" runat="server" CssClass="button" Enabled="False" 
                            Text="<%$ Resources:ButtonResource,btnNew %>"  AccessKey="n" 
                            OnClientClick="newZone();" meta:resourcekey="btnNewResource1" 
                            /></td>
                    <td><asp:Button ID="btnSave" runat="server" CssClass="button" Enabled="False" Text="<%$ Resources:ButtonResource,btnSave %>" 
                            AccessKey="s" onclick="btnSave_Click" meta:resourcekey="btnSaveResource1" 
                               /></td>
                    <td><asp:Button ID="btnDelete" runat="server" CssClass="button" Enabled="False" 
                            Text="<%$ Resources:ButtonResource,btnDelete %>"  AccessKey="d" 
                            
                            OnClientClick="javascript:if(confirmMsg('C001')) return true; else return false;" 
                            onclick="btnDelete_Click" meta:resourcekey="btnDeleteResource1"   /></td>
                    <td><asp:Button ID="btnCopy" runat="server" CssClass="button" Enabled="False" Text="<%$ Resources:ButtonResource,btnCopy %>" 
                            AccessKey="c" onclick="btnCopy_Click" meta:resourcekey="btnCopyResource1" 
                              /></td>
                </tr>
            </table>
        </div>
        
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
                <div>
                    <asp:Label ID="lblMsg" runat="server" CssClass="label_message" 
                        meta:resourcekey="lblMsg"></asp:Label>
                </div>
                
                 <div id="div_menu">
                    <div style="float: left; width: 8px;">
                        <div class="tabL" id="imgL1"></div>
                    </div>
                    <div class="tabLabelCont tabCur" id="div1">
                        <asp:Label ID="one1" CssClass="hover" runat="server" 
                            meta:resourcekey="one1">储区</asp:Label>
                    </div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR" id="imgR1"></div>
                    </div>
                </div>
                
                
                <div id="div_content">
                    <div id="con_one_1" style="display: block;">
                        <table width="540" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td><asp:Label CssClass="label" ID="lblZoneID" runat="server" Text="储区" 
                                        meta:resourcekey="lblZoneID"></asp:Label>
                                   <font color="red">*</font>
                                </td>
                                <td><asp:Label CssClass="label" ID="lblDefaultPickToLoc" runat="server" 
                                        Text="默认拣货到货位" meta:resourcekey="lblDefaultPickToLoc"></asp:Label></td>
                            </tr>
                            <tr>
                                <td><asp:TextBox ID="txtZoneID" runat="server" CssClass="textbox" MaxLength="20" 
                                        meta:resourcekey="txtZoneID"></asp:TextBox></td>
                                <td>
                                    <asp:TextBox ID="txtDefaultPickToLoc" runat="server" CssClass="textbox" 
                                        MaxLength="20" meta:resourcekey="txtDefaultPickToLoc"></asp:TextBox><img src="../Images/icon_find.gif" id="imgDefaultPickToLoc" runat="server" alt="select one item" class="img" onclick="selectLot('txtDefaultPickToLoc');"/>
                                </td>
                            </tr>
                            <tr>
                                <td><asp:Label CssClass="label" ID="lblDesc" runat="server" Text="说明" 
                                        meta:resourcekey="lblDesc"></asp:Label></td>
                                <td><asp:Label CssClass="label" ID="lblInLoc" runat="server" Text="入库过渡货位" 
                                        meta:resourcekey="lblInLoc"></asp:Label></td>
                            </tr>
                            <tr>
                                <td><asp:TextBox ID="txtDesc" runat="server" CssClass="textbox" MaxLength="100" 
                                        meta:resourcekey="txtDesc"></asp:TextBox></td>
                                <td>
                                    <asp:TextBox ID="txtInLoc" runat="server" CssClass="textbox" MaxLength="20" 
                                        meta:resourcekey="txtInLoc"></asp:TextBox><img src="../Images/icon_find.gif" id="imgInLoc" runat="server" alt="select one item" class="img" onclick="selectLot('txtInLoc');"/>
                                </td>
                            </tr>
                            <tr>
                                <td><asp:Label CssClass="label" ID="lblVeriMethod" runat="server" Text="货位验证方法" 
                                        meta:resourcekey="lblVeriMethod"></asp:Label></td>
                                <td><asp:Label CssClass="label" ID="lblOutLoc" runat="server" Text="出库过渡货位" 
                                        meta:resourcekey="lblOutLoc"></asp:Label></td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:DropDownList ID="ddlVeriMethod" runat="server" CssClass="mediumselectbox" 
                                        meta:resourcekey="ddlVeriMethod">
                                    </asp:DropDownList>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtOutLoc" runat="server" CssClass="textbox" MaxLength="20" 
                                        meta:resourcekey="txtOutLoc"></asp:TextBox><img src="../Images/icon_find.gif" id="imgOutLoc" runat="server" alt="select one item" class="img" onclick="selectLot('txtOutLoc');"/>
                                </td>
                            </tr>
                            <tr>
                                <td><asp:CheckBox ID="chkIsActive" runat="server" CssClass="checkbox" Text="启用" 
                                        Checked="True" meta:resourcekey="chkIsActive" /></td>
                                <td>&nbsp;</td>
                            </tr>
                            <tr>
                                <td><asp:CheckBox ID="chkSysCreate" Enabled="False" runat="server" 
                                        CssClass="checkbox" Text="系统创建" meta:resourcekey="chkSysCreate" /></td>
                            </tr>
                        </table>
                    </div>
                </div>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnNew" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="btnSave" EventName="Click" />
                <%--<asp:AsyncPostBackTrigger ControlID="btnDelete" EventName="Click" />--%>
                <asp:AsyncPostBackTrigger ControlID="btnCopy" EventName="Click" />
            </Triggers>
         </asp:UpdatePanel>
    <input type="hidden" id="hdnFrom" runat="server" />
    </div>
    </form>
</body>
</html>
